import { defineStore } from '@/config/pinia/index.ts';
import type { CommonMenuProps } from '#/Menu.d.ts';
export const useMenusStore = defineStore({
	id      : 'menusStore',
	state   : () => {
		return {
			isCollapsed              : false as boolean,
			menuList                 : [] as Array<CommonMenuProps>,
			currentActivateComponent : null as CommonMenuProps | undefined | null
		};
	},
	getters : {
		getIsCollapsed : (state: any) => state['isCollapsed']
	},
	actions : {
		triggerCollapseStatus() {
			this['isCollapsed'] = !this['isCollapsed'];
		}
	}
});